package com.cms.domain;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;


/**
 * 主题
 * 
 *
 */
public class Subject {

	private Long id;
	private String name;//主题名
	private String content;//消息内容
	private String creater;//创建人
	
	//直接在date类型上加入注解，同时指定格式样式
	@DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
	private Date createtime;//创建时间
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	

}